define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function(){
		this.callParent();
	};

	Model.prototype.modelLoad = function(event){
<<<<<<< HEAD
	    
	   //  window.=window.roomurl;
	  // window.location.href=window.roomurl;
       this.getElementByXid("iframe").src = window.roomurl+'?user=2';
       
     // window.open (window.roomurl,'newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
=======
	   //  location.href="https://sphy.etkqqzhdj.gov.cn:25783/r/12345678";
        this.getElementByXid("iframe").src = window.roomurl;
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
	};

	Model.prototype.cancelBtnClick = function(event){
        $.ajax({
        type: "GET",
        url: window.yuming+'/videoconnects/vc/stop?id='+window.roomid+'&login-token='+window.token,     
<<<<<<< HEAD
        async: true,
=======
        async: false,
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
        cache: false,

        success: function(datas){
            
<<<<<<< HEAD
             //  justep.Shell.showPage("main");
=======
               justep.Shell.showPage("main");
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
             
            },
        error: function(XMLHttpRequest){

         
        }
    });
<<<<<<< HEAD
    this.close();
=======
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
	};

	return Model;
});